/**
 * description
 * <p>fill description</p>
 * @author zido
 * @since 2017/6/3 0003
 */
import {connect} from 'react-redux'
import Home from '../components/Home'
import {openAddModal,
  postAddData,
  loadData,
  saveTableOptions,
  saveUserInfo,
  pass,
  deleteByBusinessUserId,
} from '../modules/home'

const mapDispatchToProps = {
  openAddModal,
  postAddData,
  loadData,
  saveTableOptions,
  saveUserInfo,
  pass,
  deleteByBusinessUserId,
}

const mapStateToProps = (state) => ({
  home : state.home
})

export default connect(mapStateToProps,mapDispatchToProps)(Home)